const age = 'xxx'
const obj = {
  [age]: 18,
}
console.log(obj)
